var limsQualitycontrolTestResult = Gikam.getPageObject({

    getEditListColumns: function () {
        return [{
            checkbox: true
        }, {
            index: true
        }, {
            field: 'controlMaterialName',
            title: 'T_LIMS_QUALITYCONTROL_TEST_RESULT.CONTROLMATERIALNAME',
            width: 160
        }, {
            field: 'mainBatchCode',
            title: 'T_LIMS_QUALITYCONTROL_TEST_RESULT.MAINBATCHCODE',
            width: 160
        }, {
            field: 'controlMaterialLevel',
            title: 'T_LIMS_QUALITYCONTROL_TEST_RESULT.CONTROLMATERIALLEVEL',
            type: 'select',
            category: 'sys',
            param: {
                codeCategoryId: 'controlMaterialLevel'
            },
            width: 160
        }, {
            field: 'equipmentName',
            title: 'T_LIMS_QUALITYCONTROL_TEST_RESULT.EQUIPMENTNAME',
            width: 160
        }, {
            field: 'professionalGroup',
            title: 'T_LIMS_QUALITYCONTROL_TEST_RESULT.PROFESSIONALGROUP',
            width: 160
        }, {
            field: 'productCode',
            title: 'T_LIMS_QUALITYCONTROL_TEST_RESULT.PRODUCTCODE',
            width: 160
        }, {
            field: 'productName',
            title: 'T_LIMS_QUALITYCONTROL_TEST_RESULT.PRODUCTNAME',
            width: 160
        }, {
            field: 'methodDesc',
            title: 'T_LIMS_QUALITYCONTROL_TEST_RESULT.METHODDESC',
            width: 160
        }, {
            field: 'testResult',
            title: 'T_LIMS_QUALITYCONTROL_TEST_RESULT.TESTRESULT',
            width: 160
        }, {
            field: 'resultSaveTime',
            title: 'T_LIMS_QUALITYCONTROL_TEST_RESULT.RESULTSAVETIME',
            width: 160
        }];
    },

    getDrawListColumns: function () {
        return [{
            checkbox: true
        }, {
            field: 'mainBatchCode',
            title: 'T_LIMS_QUALITYCONTROL_TEST_RESULT.MAINBATCHCODE',
            width: 160
        }, {
            field: 'controlMaterialLevel',
            title: 'T_LIMS_QUALITYCONTROL_TEST_RESULT.CONTROLMATERIALLEVEL',
            type: 'select',
            category: 'sys',
            param: {
                codeCategoryId: 'controlMaterialLevel'
            },
            width: 160
        }, {
            field: 'productName',
            title: 'T_LIMS_QUALITYCONTROL_TEST_RESULT.PRODUCTNAME',
            width: 160
        }];
    },

    getBaseInfoFormFields: function () {
        return [{
            field: 'controlMaterialName',
            title: 'T_LIMS_QUALITYCONTROL_TEST_RESULT.CONTROLMATERIALNAME',
            validators: ['strLength[0,33]']
        }, {
            field: 'mainBatchCode',
            title: 'T_LIMS_QUALITYCONTROL_TEST_RESULT.MAINBATCHCODE',
            validators: ['strLength[0,33]']
        }, {
            field: 'controlMaterialLevel',
            title: 'T_LIMS_QUALITYCONTROL_TEST_RESULT.CONTROLMATERIALLEVEL',
            validators: ['strLength[0,66]']
        }, {
            field: 'equipmentName',
            title: 'T_LIMS_QUALITYCONTROL_TEST_RESULT.EQUIPMENTNAME',
            validators: ['strLength[0,33]']
        }, {
            field: 'professionalGroup',
            title: 'T_LIMS_QUALITYCONTROL_TEST_RESULT.PROFESSIONALGROUP',
            validators: ['strLength[0,66]']
        }, {
            field: 'productCode',
            title: 'T_LIMS_QUALITYCONTROL_TEST_RESULT.PRODUCTCODE',
            validators: ['strLength[0,33]']
        }, {
            field: 'productName',
            title: 'T_LIMS_QUALITYCONTROL_TEST_RESULT.PRODUCTNAME',
            validators: ['strLength[0,33]']
        }, {
            field: 'methodDesc',
            title: 'T_LIMS_QUALITYCONTROL_TEST_RESULT.METHODDESC',
            validators: ['strLength[0,33]']
        }, {
            field: 'testResult',
            title: 'T_LIMS_QUALITYCONTROL_TEST_RESULT.TESTRESULT',
            validators: ['strLength[0,66]']
        }, {
            field: 'resultSaveTime',
            title: 'T_LIMS_QUALITYCONTROL_TEST_RESULT.RESULTSAVETIME'
        }, {
            field: 'targetValue',
            title: 'T_LIMS_QUALITYCONTROL_TEST_RESULT.TARGETVALUE',
            validators: ['strLength[0,33]']
        }, {
            field: 'standardDeviation',
            title: 'T_LIMS_QUALITYCONTROL_TEST_RESULT.STANDARDDEVIATION',
            validators: ['strLength[0,33]']
        }, {
            field: 'cvValue',
            title: 'T_LIMS_QUALITYCONTROL_TEST_RESULT.CVVALUE',
            validators: ['strLength[0,33]']
        }, {
            field: 'controlRule',
            title: 'T_LIMS_QUALITYCONTROL_TEST_RESULT.CONTROLRULE',
            validators: ['strLength[0,66]']
        }, {
            field: 'qualityControlTestBatchCode',
            title: 'T_LIMS_QUALITYCONTROL_TEST_RESULT.QUALITYCONTROLTESTBATCHCODE',
            validators: ['strLength[0,33]']
        }];
    },

    getManageEditListColumns: function () {
        return [{
            checkbox: true
        }, {
            index: true
        }, {
            field: 'removeStatus',
            title: 'T_LIMS_QUALITYCONTROL_TEST_RESULT_MANAGE.REMOVESTATUS',
            type: 'select',
            items: [{text: 'yes', value: '1'},
                {text: 'no', value: '0'}],
            width: 160
        }, {
            field: 'mainBatchCode',
            title: 'T_LIMS_QUALITYCONTROL_TEST_RESULT_MANAGE.MAINBATCHCODE',
            width: 160
        }, {
            field: 'controlMaterialName',
            title: 'T_LIMS_QUALITYCONTROL_TEST_RESULT_MANAGE.CONTROLMATERIALNAME',
            width: 160
        }, {
            field: 'controlMaterialLevel',
            title: 'T_LIMS_QUALITYCONTROL_TEST_RESULT_MANAGE.CONTROLMATERIALLEVEL',
            type: 'select',
            category: 'sys',
            multiple: true,
            param: {
                codeCategoryId: 'controlMaterialLevel'
            },
            width: 160
        }, {
            field: 'productCode',
            title: 'T_LIMS_QUALITYCONTROL_TEST_RESULT_MANAGE.PRODUCTCODE',
            width: 160
        }, {
            field: 'productName',
            title: 'T_LIMS_QUALITYCONTROL_TEST_RESULT_MANAGE.PRODUCTNAME',
            width: 160
        }, {
            field: 'ext$.controlrulename',
            title: 'T_LIMS_QUALITYCONTROL_TEST_RESULT_MANAGE.CONTROLRULE',
            sort: false,
            width: 160
        }, {
            field: 'testResult',
            title: 'T_LIMS_QUALITYCONTROL_TEST_RESULT_MANAGE.TESTRESULT',
            width: 160
        }, {
            field: 'resultSaveTime',
            title: 'T_LIMS_QUALITYCONTROL_TEST_RESULT_MANAGE.RESULTSAVETIME',
            width: 160
        }, {
            field: 'averageForResult',
            title: 'T_LIMS_QUALITYCONTROL_TEST_RESULT_MANAGE.AVERAGEFORRESULT',
            width: 160
        }, {
            field: 'standardDeviationForResult',
            title: 'T_LIMS_QUALITYCONTROL_TEST_RESULT_MANAGE.STANDARDDEVIATIONFORRESULT',
            width: 160
        }, {
            field: 'cvForResult',
            title: 'T_LIMS_QUALITYCONTROL_TEST_RESULT_MANAGE.CVFORRESULT',
            width: 160
        }, {
            field: 'targetValue',
            title: 'T_LIMS_QUALITYCONTROLPLAN_PROJECT.TARGETVALUE'
        }, {
            field: 'standardDeviation',
            title: 'T_LIMS_QUALITYCONTROLPLAN_PROJECT.STANDARDDEVIATION'
        }, {
            field: 'cvValue',
            title: 'T_LIMS_QUALITYCONTROLPLAN_PROJECT.CVVALUE'
        }, {
            field: 'relativeValue',
            title: 'T_LIMS_QUALITYCONTROL_TEST_RESULT_MANAGE.RELATIVEVALUE',
            width: 160
        }, {
            field: 'outOfControlReason',
            title: 'T_LIMS_QUALITYCONTROL_TEST_RESULT_MANAGE.OUTOFCONTROLREASON',
            editor: true,
            width: 160
        }, {
            field: 'howToHandle',
            title: 'T_LIMS_QUALITYCONTROL_TEST_RESULT_MANAGE.HOWTOHANDLE',
            editor: true,
            width: 160
        }, {
            field: 'auditerName',
            title: 'T_LIMS_QUALITYCONTROL_TEST_RESULT_MANAGE.AUDITERNAME',
            editor: true,
            width: 160
        }, {
            field: 'auditTime',
            title: 'T_LIMS_QUALITYCONTROL_TEST_RESULT_MANAGE.AUDITTIME',
            type: 'dateTime',
            editor: true,
            width: 160
        }, {
            field: 'createdByName',
            title: 'T_LIMS_QUALITYCONTROL_TEST_RESULT_MANAGE.CREATEDBYNAME',
            width: 160
        }, {
            field: 'createdTime',
            title: 'T_LIMS_QUALITYCONTROL_TEST_RESULT_MANAGE.CREATEDTIME',
            width: 160
        }, {
            field: 'abnormalDesc',
            title: 'T_LIMS_QUALITYCONTROL_TEST_RESULT_MANAGE.ABNORMALDESC',
            width: 160
        }];
    },

    getManageReultDataByGroupListColumns: function () {
        var columns = [{
            checkbox: true
        }, {
            field: 'mainBatchCode',
            title: 'T_LIMS_QUALITYCONTROL_TEST_RESULT_MANAGE.MAINBATCHCODE',
            width: 160
        }, {
            field: 'controlMaterialLevel',
            title: 'T_LIMS_QUALITYCONTROL_TEST_RESULT_MANAGE.CONTROLMATERIALLEVEL',
            type: 'select',
            category: 'sys',
            multiple: true,
            param: {
                codeCategoryId: 'controlMaterialLevel'
            },
            width: 160
        }, {
            field: 'productName',
            title: 'T_LIMS_QUALITYCONTROL_TEST_RESULT_MANAGE.PRODUCTNAME',
            width: 160
        }, {
            field: 'averageForResult',
            title: 'T_LIMS_QUALITYCONTROL_TEST_RESULT_MANAGE.AVERAGEFORRESULT',
            width: 160
        }, {
            field: 'standardDeviationForResult',
            title: 'T_LIMS_QUALITYCONTROL_TEST_RESULT_MANAGE.STANDARDDEVIATIONFORRESULT',
            width: 160
        }, {
            field: 'cvForResult',
            title: 'T_LIMS_QUALITYCONTROL_TEST_RESULT_MANAGE.CVFORRESULT',
            width: 160
        }, {
            field: 'targetValue',
            title: 'T_LIMS_QUALITYCONTROLPLAN_PROJECT.TARGETVALUE',
            width: 160
        }, {
            field: 'standardDeviation',
            title: 'T_LIMS_QUALITYCONTROLPLAN_PROJECT.STANDARDDEVIATION',
            width: 160
        }, {
            field: 'cvValue',
            title: 'T_LIMS_QUALITYCONTROLPLAN_PROJECT.CVVALUE',
            width: 160
        }, {
            field: 'ext$.averageforhistory',
            title: 'T_LIMS_QUALITYCONTROL_TEST_RESULT_MANAGE.AVERAGEFORHISTORY',
            width: 160
        }, {
            field: 'ext$.sdforhistory',
            title: 'T_LIMS_QUALITYCONTROL_TEST_RESULT_MANAGE.SDFORHISTORY',
            width: 160
        }, {
            field: 'ext$.cvforhistory',
            title: 'T_LIMS_QUALITYCONTROL_TEST_RESULT_MANAGE.CVFORHISTORY',
            width: 160
        }]
        return columns
    },

    baseManageUrl: IFM_CONTEXT + '/secure/basemodule/business/qualitycontrol/qualitycontrol-test-result-manages',
    baseUrl: IFM_CONTEXT + '/secure/basemodule/business/qualitycontrol/qualitycontrol-test-results',
    baseProjectUrl: IFM_CONTEXT + '/secure/basemodule/business/qualitycontrol/qualitycontrolplan-projects',
});
